package org.boot.ssm.wxshop.service;

import org.boot.ssm.wxshop.common.BaseService;
import org.boot.ssm.wxshop.domain.ReceiveAddress;
import org.boot.ssm.wxshop.domain.User;
import org.boot.ssm.wxshop.web.common.JsonResult;

/**
 * @program: wxshop
 * @description: 收货地址业务接口
 * @author: 刘涛
 * @create: 2018-03-21 14:37
 **/
public interface ReceiveAddressService extends BaseService<ReceiveAddress>{


    /**
     * 添加或修改收货地址
     * @param receiveAddress
     * @param user
     * @return
     */
    public JsonResult addOrUpdateReceiveAddress(ReceiveAddress receiveAddress, User user);


    /**
     * 逻辑删除用户收货地址
     * @param receiveAddress
     * @return
     */
    public  JsonResult deleteAddress(ReceiveAddress receiveAddress);

}
